import login from "./views/login";
import index from "./views/index";
import user from "./components/user/user";
import role from "./components/user/role";
import menu from "./components/user/menu";
import identityAuth from "./components/community/identityAuth";
import rightObligation from "./components/community/rightObligation";
import notice from "./components/community/notice";
import suggestionBox from "./components/community/suggestionBox";
import forum from "./components/onlineForum/forum";
import uForum from "./components/onlineForum/uForum";
import hotArticle from "./components/hotSource/hotArticle";
import hotVideo from "./components/hotSource/hotVideo";
import userPersonalCommunityInfo from "./components/community/userPersonalCommunityInfo";
import resetPass from "./views/resetPass";
import registerResigentBatch from "./components/community/registerResigentBatch";
import districtHeadIdentityAuth from "./components/community/districtHeadIdentityAuth";
import districtHeadNotice from "./components/community/districtHeadNotice";
import districtHeadRightObligation from "./components/community/districtHeadRightObligation";
import residentSuggestionBox from "./components/community/residentSuggestionBox";
import residentNotice from "./components/community/residentNotice";
import residentRightObligation from "./components/community/residentRightObligation";
import districtHeadSuggestionBox from "./components/community/districtHeadSuggestionBox";
import districtHeadForum from "./components/onlineForum/districtHeadForum";
import customerHotVideo from "./components/hotSource/customerHotVideo";
import customerHotArticle from "./components/hotSource/customerHotArticle";
import register from "./views/register";
// import test from "./components/test";

//路由数据
const routers = [
    {
        path: '/login',
        name:'登录',
        meta: {
            title: '登录'
        },
        component: login
    },
    {
        path: '/resetPass',
        name:'重置密码',
        meta: {
            title: '重置密码'
        },
        component: resetPass
    },
    {
        path:'/register',
        name:'用户注册',
        meta: {
            title: '用户注册'
        },
        component: register
    },
    {
        path: '/',
        name:'首页',
        meta: {
            title: '首页'
        },
        component: index,
        children: [
            {
                path: 'user',
                name:'用户',
                meta: {
                    title: '用户'
                },
                component: user
            },
            {
                path: 'role',
                name:'角色',
                meta: {
                    title: '角色'
                },
                component: role
            },
            {
                path: 'menu',
                name:'权限',
                meta: {
                    title: '权限'
                },
                component: menu
            },
            {
                path: 'identityAuth',
                name:'身份认证',
                meta: {
                    title: '身份认证'
                },
                component: identityAuth
            },
            {
                path: 'userPersonalCommunityInfo',
                name:'个人社区身份信息',
                meta: {
                    title: '个人社区身份信息'
                },
                component: userPersonalCommunityInfo
            },
            {
                path: 'rightObligation',
                name:'权利与义务',
                meta: {
                    title: '居民权利与义务'
                },
                component: rightObligation
            },
            {
                path: 'notice',
                name:'公告',
                meta: {
                    title: '公告'
                },
                component: notice
            },
            {
                path: 'suggestionBox',
                name:'意见箱',
                meta: {
                    title: '意见箱'
                },
                component: suggestionBox
            },
            {
                path: 'forum',
                name:'在线论坛',
                meta: {
                    title: '在线论坛'
                },
                component: forum
            },
            {
                path: 'districtHeadForum',
                name:'社区长在线论坛',
                meta: {
                    title: '社区长在线论坛'
                },
                component: districtHeadForum
            },
            {
                path: 'uForum',
                name:'居民在线论坛',
                meta: {
                    title: '居民在线论坛'
                },
                component: uForum
            },
            {
                path:'hotArticle',
                name:'热点文章',
                meta: {
                    title: '热点文章'
                },
                component: hotArticle
            },
            {
                path:'hotVideo',
                name:'热点视频',
                meta: {
                    title: '热点视频'
                },
                component: hotVideo
            },
            {
                path:'registerResigentBatch',
                name:'批量注册居民',
                meta: {
                    title: '批量注册居民'
                },
                component: registerResigentBatch
            },
            {
                path:'districtHeadIdentityAuth',
                name:'社区身份认证',
                meta: {
                    title: '社区身份认证'
                },
                component: districtHeadIdentityAuth
            },
            {
                path:'districtHeadRightObligation',
                name:'社区居民权利与义务',
                meta: {
                    title: '社区居民权利与义务'
                },
                component: districtHeadRightObligation
            },
            {
                path:'districtHeadNotice',
                name:'社区公告',
                meta: {
                    title: '社区公告'
                },
                component: districtHeadNotice
            },
            {
                path:'residentSuggestionBox',
                name:'居民意见箱',
                meta: {
                    title: '居民意见箱'
                },
                component: residentSuggestionBox
            },
            {
                path:'residentNotice',
                name:'居民公告',
                meta: {
                    title: '居民公告'
                },
                component: residentNotice
            },
            {
                path:'residentRightObligation',
                name:'居民权利与义务',
                meta: {
                    title: '居民权利与义务'
                },
                component: residentRightObligation
            },
            {
                path:'districtHeadSuggestionBox',
                name:'社区意见箱',
                meta: {
                    title: '社区意见箱'
                },
                component: districtHeadSuggestionBox
            },
            {
                path:'customerHotVideo',
                name:'热点视频一览',
                meta: {
                    title: '热点视频一览'
                },
                component: customerHotVideo
            },
            {
                path:'customerHotArticle',
                name:'热点文章一览',
                meta: {
                    title: '热点文章一览'
                },
                component: customerHotArticle
            },
            // {
            //     path:'test',
            //     name:'测试',
            //     meta: {
            //         title: '测试'
            //     },
            //     component: test
            // }

        ]
    },
    {
        path: '*',
        redirect: '/index'
    }
];
export default routers;